package org.example.commons.service;

import org.example.commons.entity.SysRole;
import org.example.commons.entity.SysUserRole;
import org.example.commons.service.IBaseService;

import java.util.List;

public interface ISysUserRoleService extends IBaseService<SysUserRole> {

    List<SysRole> findRoleByAdminId(Long adminId);

    List<Long> findRoleIdByAdminId(Long adminId);

    /**
     * 更新用户角色
     * @param roles
     * @param adminId
     */
    void updateRoleByAdminId(Long[] roles, Long adminId);


}
